package com.example.designpatterns.template;

import org.junit.Test;

/**
 * 模板设计模式de测试
 */
public class Test1 extends Template1 {
    @Override
    public void code() {
        for (int x = 0;x<10000; x++){
            System.out.println(x);
        }
    }

    @Test
    public void t1(){
        Test1 t = new Test1();
        System.out.println(t.getTime()+"毫秒");
    }
}
